package com.wanmait.heatingrepair.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import lombok.Data;

/**
* Created by Mybatis Generator 2021/05/10
*/
@Data
@TableName(value = "materials_name")
public class MaterialsName implements Serializable {
     @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 耗材名称
     */
    @TableField(value = "title")
    private String title;

    /**
     * 图片
     */
    @TableField(value = "picture")
    private String picture;

    /**
     * 描述
     */
    @TableField(value = "description")
    private String description;

    /**
     * 价格
     */
    @TableField(value = "price")
    private Integer price;

    /**
     * 耗材分类id
     */
    @TableField(value = "materials_type_id")
    private Integer materialsTypeId;
    @TableField(exist = false)
    private MaterialsType materialsType;

    /**
     * 可能
     */
    @TableLogic
    @TableField(value = "enable")
    private Boolean enable;

    private static final long serialVersionUID = 1L;

    public static final String COL_TITLE = "title";

    public static final String COL_PICTURE = "picture";

    public static final String COL_DESCRIPTION = "description";

    public static final String COL_PRICE = "price";

    public static final String COL_MATERIALS_TYPE_ID = "materials_type_id";

    public static final String COL_ENABLE = "enable";
}